﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;

//序列化声明
[Serializable]
public class UIPanelInfo :ISerializationCallbackReceiver{
    public UIPanelType panelType{
        get{
            //将一个字符串转为指定的枚举类型
            return (UIPanelType) System.Enum.Parse(typeof(UIPanelType),Name);
        }
    }
    public string Name;
    public string Path;
    /*
     * 在序列化后回调
     */
    public void OnAfterDeserialize()
    {
        
    }
    /*
     * 在序列化前回调
     */
    public void OnBeforeSerialize()
    {
        
    }
}
